package
{
	import flash.display.Graphics;
	import flash.display.Shape;
	import flash.geom.Point;
	
	public class ButtonDisplyState extends Shape
	{
		private var _bgColor:uint;
		private var _size:Point;
		
		public function ButtonDisplyState($bgColor:uint, $size:Point)
		{
			this._bgColor = $bgColor;
			this._size = $size;  
			draw();
		}
		
		private function draw():void
		{
			var g:Graphics = this.graphics;
			g.beginFill(this._bgColor);
			g.drawRect(0,0,this._size.x,this._size.y);
			g.endFill();
		}
	}
}